import request from '@/utils/request'

// 查询付费模式明细列表
export function listContractpaydetail(query) {
  return request({
    url: '/system/contractpaydetail/list',
    method: 'get',
    params: query
  })
}

// 查询付费模式明细详细
export function getContractpaydetail(id) {
  return request({
    url: '/system/contractpaydetail/' + id,
    method: 'get'
  })
}

// 新增付费模式明细
export function addContractpaydetail(data) {
  return request({
    url: '/system/contractpaydetail',
    method: 'post',
    data: data
  })
}

// 修改付费模式明细
export function updateContractpaydetail(data) {
  return request({
    url: '/system/contractpaydetail',
    method: 'put',
    data: data
  })
}

// 删除付费模式明细
export function delContractpaydetail(id) {
  return request({
    url: '/system/contractpaydetail/' + id,
    method: 'delete'
  })
}
